import request from '@/utils/request'

// 插件列表
export function pluginsList(params) {
  return request({
    url: '/marketing/admin/plugins/list',
    method: 'get',
    params
  })
}
// 插件开通信息
export function qryMerOpenPlugin(params) {
  return request({
    url: '/marketing/admin/plugins/qryMerOpenPlugin',
    method: 'get',
    params
  })
}
// 插件详情
export function qryMerPluginDetail(params) {
  return request({
    url: '/marketing/admin/plugins/qryMerPluginDetail',
    method: 'get',
    params
  })
}
// 购买插件
export function buyPlug(data) {
  return request({
    url: '/business_admin/plugin/buy',
    method: 'post',
    data
  })
}
// 插件列表
export function saveFeatureConfig(data) {
  return request({
    url: '/marketing/admin/plugins/list',
    method: 'post',
    data
  })
}
// 关闭插件
export function closePlugin(data) {
  return request({
    url: '/marketing/admin/plugins/closePlugin',
    method: 'post',
    data
  })
}
// 新增商户插件费用计算
export function calAddMerQuotaAmt(data) {
  return request({
    url: '/business_admin/plugin/calAddMerQuotaAmt',
    method: 'post',
    data
  })
}
// 查询当前订单状态
export function qryPayStatus(params) {
  return request({
    url: '/business_admin/plugin/qryPayStatus',
    method: 'get',
    params
  })
}
// 余额
export function qryMerWallBalance(params) {
  return request({
    url: '/business_admin/plugin/qryMerWallBalance',
    method: 'get',
    params
  })
}

